// 这个Main.vue部分就是主要装不会变的部分
<template>
   <div class="common-layout">
    <!-- 侧边栏 -->
    <el-container class="lay-container">
      <common-aside/>

  <!-- <el-header>顶部栏</el-header> -->
      <el-container>
       <common-header/>

    <!-- 主体内容变化区 -->
        <el-main>
          <router-view/>
          </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import{defineComponent} from "vue";
import CommonHeader from"../components/CommonHeader.vue"
import CommonAside from"../components/CommonAside.vue"
export default  defineComponent({ 
    components:{
        CommonHeader,
        CommonAside,
    }
    
});
</script>

<style lang="less" scoped>
.el-container{
  flex-wrap: wrap;
  align-items: flex-start;
  height: 100%;
}
.common-layout{
  .lay-container{
    flex-wrap: nowrap;
  }
  height: 100%;
  & > .el-container{
    height: 100%;
      & > .el-aside{
      background: #545c64;
      height: 100%;
    }
  }
}
  
</style>